package com.example.win.android_banduyujia.venuesactivity.activity.houractivtiy;

import android.os.Bundle;
import android.view.View;
import android.widget.RadioButton;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.lib.util.StrUtils;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/9/14.
 */
public class HourActivity extends BaseTitleBarActivity {

    private RadioButton mRBhight, mRBcenter, mRBlow;
    private String  mFinish = " ";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.title_item_hour);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.layout_title_hour);
        setRightTextViewListener(R.string.text_view_submit_audit_finish, mRightListener);
    }

    private View.OnClickListener mRightListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if(StrUtils.isEmpty(mFinish)){
                showToast("完成");
            }
            Finish();
        }
    };

    private void Finish() {

    }

    private void InitViews() {
        mRBhight = (RadioButton)findViewById(R.id.rb_view_icon_high);
        mRBcenter = (RadioButton)findViewById(R.id.rb_view_icon_centre);
        mRBlow = (RadioButton)findViewById(R.id.rb_view_icon_low);

    }
}
